package com.wxm.common.file.core.property;

import com.wxm.common.file.core.service.supplier.QiniuKodoService;
import com.wxm.common.file.core.service.supplier.SupplierBaseService;
import com.wxm.common.file.core.enm.FileSupplierEnum;
import lombok.Data;

/**
 * <p>
 *      七牛对象存储配置
 * </p>
 *
 * @author: wxm
 * @Date: 2022/1/17
 */
@Data
public class QiniuKodoProperty extends UploadBaseProperty {
    /**
     * 密钥AK
     */
    private String accessKey;

    /**
     * 密钥SK
     */
    private String secretKey;

    /**
     * 空间名
     */
    private String bucket;

    /**
     * 空间机房
     */
    private String region;

    /**
     * 空间访问域名
     */
    private String domainOfBucket;

    /**
     * 访问类型
     */
    private String accessType;

    @Override
    public FileSupplierEnum fileSupplierEnum() {
        return FileSupplierEnum.QI_NIU;
    }

    @Override
    public Class<? extends SupplierBaseService> supplierService() {
        return QiniuKodoService.class;
    }
}
